<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <table>
            <tr is="atguigu-row"></tr>
            <tr is="atguigu-row"></tr>
        </table>
    </div>
</body>
<script>

    Vue.component("atguigu-row",{
        data(){
          return{
              msg:"---"
          }
        },
        template:`
             <tr>
                <td>1-1</td>
                <td>1-2</td>
            </tr>
        </table> `,
    })

    // 声明式编程
    var vm = new Vue({
        el:"#app"
    })
</script>
</html>